﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<PhotoGalleryEnteties.PhotoInfo>>" %>
<%@ Import Namespace="PhotoGalleryEnteties" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Home Page
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
   <h1> Welcome on Polars:/ </h1>
   <div class="RandomPhotos">
   <%foreach (PhotoInfo photo in Model)
     {%>
     <%
         Html.RenderPartial("RandomPhoto",photo);%>
     <%
     }%>
   </div>
   <script type="text/javascript" src="<%=Url.Content("~/Scripts/PageScripts/IndexPage.js" ) %> "></script>

</asp:Content>
